﻿<UserControl x:Class="Project.StatisticalReportsContent"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:Toolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
             
             mc:Ignorable="d" 
             d:DesignHeight="1000" d:DesignWidth="900">
    <Grid Width="900" Height="1000">
        <Label FontSize="24" FontWeight="ExtraLight" Content="Casos Remitidos" Height="28" HorizontalAlignment="Left" Margin="33,126,0,0" Name="label1" VerticalAlignment="Top" />
        <DatePicker BorderBrush="#BABABA" Focusable="False" Height="29" HorizontalAlignment="Left" Margin="88,160,0,0" Name="dateStart" VerticalAlignment="Top" Width="115" SelectedDateChanged="dateStart_SelectedDateChanged" />
        <DatePicker  BorderBrush="#BABABA" Focusable="False" Height="29" HorizontalAlignment="Left" Margin="274,160,0,0" Name="dateEnd" VerticalAlignment="Top" Width="115" SelectedDateChanged="dateEnd_SelectedDateChanged" />
        <Label Content="Desde:" Height="28" HorizontalAlignment="Left" Margin="46,166,0,0" Name="label2" VerticalAlignment="Top" />
        <Label Content="Hasta:" Height="28" HorizontalAlignment="Left" Margin="236,166,0,0" Name="label3" VerticalAlignment="Top" />
        <Toolkit:Chart Name="mcChart" Background="#BABABA"
                       FontFamily="Segoe UI" FontWeight="ExtraLight" Foreground="Black" Title="Casos Remitidos" Margin="46,200,290,0" Height="297" VerticalAlignment="Top">
            <Toolkit:Chart.Series>
                <Toolkit:BarSeries Title="Numero de casos" IndependentValueBinding="{Binding Path=Key}"
            DependentValueBinding="{Binding Path=Value}">
                </Toolkit:BarSeries>
            </Toolkit:Chart.Series>

        </Toolkit:Chart>
        <Label Content="Tipos de Hecho" FontSize="24" FontWeight="ExtraLight" Height="28" HorizontalAlignment="Left" Margin="33,565,0,0" Name="label4" VerticalAlignment="Top" />
        <DatePicker Height="29" HorizontalAlignment="Left" Margin="88,599,0,0" Name="dateStart2" VerticalAlignment="Top" Width="115" SelectedDateChanged="dateStart2_SelectedDateChanged" />
        <DatePicker Height="29" HorizontalAlignment="Left" Margin="274,599,0,0" Name="dateEnd2" VerticalAlignment="Top" Width="115" SelectedDateChanged="dateEnd2_SelectedDateChanged" />
        <Label Content="Desde:" Height="28" HorizontalAlignment="Left" Margin="46,605,0,0" Name="label5" VerticalAlignment="Top" />
        <Label Content="Hasta:" Height="28" HorizontalAlignment="Left" Margin="236,605,0,0" Name="label6" VerticalAlignment="Top" />
        <Toolkit:Chart Background="#BABABA" FontFamily="Segoe UI" FontWeight="ExtraLight" Foreground="Black" Height="297" Margin="46,639,290,0" Name="FactTypesChart" Title="Tipos de Hecho" VerticalAlignment="Top">
            <Toolkit:PieSeries DependentValueBinding="{Binding Path=Value}" IndependentValueBinding="{Binding Path=Key}" Title="Numero de casos" />
        </Toolkit:Chart>
        <Button Content="SIN RANGO DE FECHAS" Height="29" HorizontalAlignment="Left" Margin="404,160,0,0" Name="btnResetDates1" VerticalAlignment="Top" Width="127" Click="btnResetDates1_Click" />
        <Button Content="SIN RANGO DE FECHAS" Height="29" HorizontalAlignment="Left" Margin="404,599,0,0" Name="btnResetDates2" VerticalAlignment="Top" Width="127" Click="btnResetDates2_Click" />
        <Label Content="Total de casos:" FontSize="24" FontWeight="ExtraLight" Height="28" HorizontalAlignment="Left" Margin="33,29,0,0" Name="label7" VerticalAlignment="Top" />
        <DatePicker BorderBrush="#BABABA" Focusable="False" Height="29" HorizontalAlignment="Left" Margin="75,74,0,0" Name="dateStartTotalCases" VerticalAlignment="Top" Width="115" SelectedDateChanged="dateStartTotalCases_SelectedDateChanged" />
        <DatePicker BorderBrush="#BABABA" Focusable="False" Height="29" HorizontalAlignment="Left" Margin="261,74,0,0" Name="dateEndTotalCases" VerticalAlignment="Top" Width="115" SelectedDateChanged="dateEndTotalCases_SelectedDateChanged" />
        <Label Content="Desde:" Height="28" HorizontalAlignment="Left" Margin="33,80,0,0" Name="label8" VerticalAlignment="Top" />
        <Label Content="Hasta:" Height="28" HorizontalAlignment="Left" Margin="223,80,0,0" Name="label9" VerticalAlignment="Top" />
        <Button Content="SIN RANGO DE FECHAS" Height="29" HorizontalAlignment="Left" Margin="391,74,0,0" Name="btnResetTotalCasesDates" VerticalAlignment="Top" Width="127" Click="btnResetTotalCasesDates_Click" />
        <Label Content="" FontSize="24" FontWeight="ExtraLight" Height="28" HorizontalAlignment="Left" Margin="187,29,0,0" Name="lblNumberOfCases" VerticalAlignment="Top" />
    </Grid>
</UserControl>
